
package com.cdp.zwy.zwy_manager_back_v1.service;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
import java.util.Collection;

public class MyUserDetails extends User {
    private final Object userObject;

    public MyUserDetails(String username, String password, Collection<? extends GrantedAuthority> authorities, Object userObject) {
        super(username, password, authorities);
        this.userObject = userObject;
    }

    public Object getUserObject() {
        return userObject;
    }
}